package com.ygqh.baby.model.ngmm;

import java.util.List;

import org.apache.commons.collections4.CollectionUtils;

import com.alibaba.fastjson.annotation.JSONField;
import com.foxinmy.weixin4j.util.StringUtil;

public class NgmmOrderListData {

	@JSONField(name = "has_next")
	private Boolean hasNext;
	
	@JSONField(name = "result")
	private List<NgmmOrder> orders;

	public Boolean getHasNext() {
		return hasNext;
	}

	public void setHasNext(Boolean hasNext) {
		this.hasNext = hasNext;
	}

	public List<NgmmOrder> getOrders() {
		return orders;
	}

	public void setOrders(List<NgmmOrder> orders) {
		this.orders = orders;
	}

	public String toString() {
		StringBuffer orderSb = new StringBuffer();
		if (CollectionUtils.isNotEmpty(orders)) {
			for (NgmmOrder ngmmOrder : orders) {
				orderSb.append(",").append(ngmmOrder.toString());
			}
		}
		return "NgmmOrderListData [hasNext=" + hasNext + ",orders=" + (StringUtil.isNotBlank(orderSb) ? orderSb.substring(1) : "") + "]";
	}
	
}
